package cn.wolfcode.trip.base.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by 13925 on 2018/10/29.
 */

/**
 * 高级条件查询父类
 */
@Getter
@Setter
public class QueryObject {

    private int currentPage = 1;   //当前页

    private int pageSize = 5; //没页显示数据

    private String keyword;   //关键字

    //判断是否为空
    public String getKeyword() {
        return StringUtils.isEmpty(keyword) || "".equals(keyword.trim()) ? null : keyword;
    }

}
